package com.duck.communication.domain.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentPojo {
    //主键
    private Integer commentId;
    //所评论的帖子ID
    private Integer postId;
    //评论用户ID
    private Integer userId;
    //评论内容
    private String content;
    //评论时间
    private LocalDateTime commentTime;
    //直接父评论ID
    private Integer parentCommentId;
    //顶级评论ID
    private Integer rootCommentId;
    //逻辑删除（0为未删除，1为已删除，默认为0）
    private Integer isDeleted;
}
